package com.yanqu.road.entity.mogulbirthday;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.List;

@FieldTypeAnnotation(tableName = "t_u_mogul_birthday")
public class MogulBirthdayUserData extends DataObject {

    @FieldTypeAnnotation(desc = "用户ID", select = true, update = true)
    private long userId;

    @FieldTypeAnnotation(desc = "是否领奖")
    private boolean getReward;

    @FieldTypeAnnotation(desc = "重置时间")
    private int resetTime;

    @FieldTypeAnnotation(desc = "是否弹出海报-记录第一次")
    private boolean notify;

    @FieldTypeAnnotation(desc = "今日他人的海报-领取奖励")
    private List<Long> readPostList;

    @FieldTypeAnnotation(desc = "重置时间")
    private int dayResetTime;

    @FieldTypeAnnotation(desc = "生辰")
    private long birthday;

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        if(this.userId != userId){
            this.userId = userId;
            setUpdateOption();
        }
    }

    public boolean isGetReward() {
        return getReward;
    }

    public void setGetReward(boolean getReward) {
        if(this.getReward != getReward) {
            this.getReward = getReward;
            setUpdateOption();
        }
    }

    public int getResetTime() {
        return resetTime;
    }

    public void setResetTime(int resetTime) {
        if(this.resetTime != resetTime) {
            this.resetTime = resetTime;
            setUpdateOption();
        }
    }

    public boolean isNotify() {
        return notify;
    }

    public void setNotify(boolean notify) {
        if(this.notify != notify){
            this.notify = notify;
            setUpdateOption();
        }
    }

    public List<Long> getReadPostList() {
        return readPostList;
    }

    public void setReadPostList(List<Long> readPostList) {
        this.readPostList = readPostList;
        setUpdateOption();
    }

    public int getDayResetTime() {
        return dayResetTime;
    }

    public void setDayResetTime(int dayResetTime) {
        if(this.dayResetTime != dayResetTime) {
            this.dayResetTime = dayResetTime;
            setUpdateOption();
        }
    }

    public long getBirthday() {
        return birthday;
    }

    public void setBirthday(long birthday) {
        if(this.birthday != birthday){
            this.birthday = birthday;
            setUpdateOption();
        }
    }
}
